﻿#include "CmdPolarCoordinateGraphSidebarDeleteAllGraph.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdPolarCoordinateGraphSidebarDeleteAllGraph::CmdPolarCoordinateGraphSidebarDeleteAllGraph()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdPolarCoordinateGraphSidebarDeleteAllGraph::~CmdPolarCoordinateGraphSidebarDeleteAllGraph()
    {
    }

    bool CmdPolarCoordinateGraphSidebarDeleteAllGraph::execute()
    {
        // bool _success = false;
        emit IBaseSignalInstance->signal_polarCoordinateGraphSidebarDeleteAllGraph(m_mainWindowId);
        return true;
    }

    void CmdPolarCoordinateGraphSidebarDeleteAllGraph::undo()
    {
    }

    void CmdPolarCoordinateGraphSidebarDeleteAllGraph::redo()
    {
        // execute();
    }

    void CmdPolarCoordinateGraphSidebarDeleteAllGraph::setPolarCoordinateGraphSidebarDeleteAllGraph(int mainWindowId)
    {
        m_mainWindowId = mainWindowId;
    }

} // namespace PostCommand
